package com.lucene.blog.db.service;

import java.sql.SQLException;
import java.util.Map;

import com.lucene.blog.bean.Blogger;

public interface BloggerService {
	// 获取博主信息
	public Blogger getBloggerData() throws SQLException;

	// 通过博主Id查询博主信息
	public Blogger getBloggerById(Integer bloggerId) throws SQLException;

	// 通过昵称和密码查询博主信息
	public Blogger getBloggerByNickAndPass(Map<String, Object> nick_pass) throws SQLException;

	// 通过昵称查询博主
	public Blogger getBloggerByNickname(String nickName) throws SQLException;

	// 更新博主个人信息
	public int updateBlogger(Blogger blogger) throws SQLException;
}
